package com.csjung.games.gamenori.client.desktop;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;

import com.csjung.games.gamenori.client.presenter.WelcomeView;

public class DesktopWelcomeView extends Composite implements WelcomeView {

  /**
   * The UiBinder interface.
   */
  interface DesktopWelcomeViewUiBinder extends UiBinder<Widget, WelcomeView> {
  }
  
  /**
   * The UiBinder used to generate the view.
   */
  private static DesktopWelcomeViewUiBinder uiBinder = GWT
      .create(DesktopWelcomeViewUiBinder.class);
  
  /**
   * The presenter for this view.
   */
  private Presenter presenter;
  
  public DesktopWelcomeView() {
    initWidget(uiBinder.createAndBindUi(this));
  }
  
  @Override
  public void setPresenter(Presenter presenter) {
    if (this.presenter != null) {
      this.presenter.stop();
    }
    this.presenter = presenter;
    
  }

  

}
